package com.tecklab.demo.handler;

import org.apache.http.impl.client.DefaultHttpRequestRetryHandler;

import java.io.IOException;
import java.util.Collection;

/**
 * @Deacription TODO
 * @Author sunking
 * @Date 2022/12/11} 上午12:52
 **/
public class CustomHttpRetryHandler extends DefaultHttpRequestRetryHandler {

    /**
     * Create the request retry handler using the specified IOException classes
     *
     * @param retryCount how many times to retry; 0 means no retries
     * @param requestSentRetryEnabled true if it's OK to retry requests that have been sent
     * @param clazzes the IOException types that should not be retried
     * @since 4.3
     */
    public CustomHttpRetryHandler(final int retryCount,
                                  final boolean requestSentRetryEnabled,
                                  final Collection<Class<? extends IOException>> clazzes){
        super(retryCount, requestSentRetryEnabled, clazzes);
    }
}
